<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //1.前置递增运算符 ++ 写在变量前面
        var age = 10;
        ++age; //类似于 age = age + 1
        console.log(age); // 11
        //2.先++ 再返回
        var p = 10;
        console.log(++p + 10); // 21

    </script>
</head>
<body>
    
</body>
</html>